@import '~antd/lib/style/themes/default.less';

ul {
    padding: 0;
    margin: 0;
}

.oringeTxt {
    color: rgba(255, 158, 0, 1);
}

.userInfoCard {
    margin-bottom: 24px;
    background: transparent;

    :global {
        .ant-card-body {
            padding: 0;
        }
    }
}

.userCard {
    background-color: #fff;
    display: flex;

    .changePwd {
        position: absolute;
        font-size: 14px;
        color: rgba(255, 158, 0, 1);
        line-height: 22px;
        top: 16px;
        right: 16px;
        // margin-top: -16px;
        // margin-right: -16px;
    }

    .userMsg {
        font-size: 14px;
        color: rgba(0, 0, 0, 0.65);
        line-height: 22px;

        .userNameRow {
            display: flex;
            justify-content: space-between;
            border: none !important;

            .userName {
                font-size: 28px;
                line-height: 32px;
                font-weight: 600;
                color: rgba(0, 0, 0, 0.85);
                margin-bottom: 2px;

                span {
                    font-size: 14px;
                    margin-left: 8px;
                    color: rgba(0, 0, 0, 0.65);
                }
            }
        }

        .userMsgRow {
            border-top: none;
            //border-bottom: 1px solid rgba(0, 0, 0, 0.08);
            padding-right: 100px;
            //border-image: linear-gradient(117deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 100%) 100 100;

            .userPosition {
                font-size: 16px;
                color: rgba(0, 0, 0, 0.65);
                line-height: 26px;
                margin-bottom: 12px;
            }
        }

        .roleNames {
            display: inline-block;
            border: 1px solid #eee;
            color: #999;
            padding: 3px 8px;
            margin: 0 10px;
            border-radius: 3px;
            background: #fff;

            :global {
                .ant-tag {
                    margin: 0 0 8px !important;
                }
            }
        }
    }

    .btnStyle {
        color: #fff;
    }
}

.roleNames {
    :global {
        .ant-tag {
            margin: 0 8px 8px 0 !important;
        }
    }
}

// 基础信息部分样式
.basicInfo {
    background: #fff;

    :global {
        .ant-form-item-label > label {
            color: rgba(0, 0, 0, 0.45);
        }
    }

    .infoTitle {
        justify-content: space-between;
    }

    .basicInfoTitle {
        display: flex;
        align-items: center;
        margin-bottom: 24px;

        .title {
            font-size: 16px;
            font-weight: 600;
            color: #000;
            //color: rgba(0, 0, 0, 0.85);
            line-height: 24px;
            text-align: left;
            margin-right: 8px;
        }

        .code {
            line-height: 1;
            cursor: pointer;
            color: #ffa22d;
        }
    }

    .basicInfoRow {
        padding: 0 0 24px;
        line-height: 22px;
        color: rgba(0, 0, 0, 0.85);
    }

    .basicLabel {
        color: rgba(0, 0, 0, 0.45);
        line-height: 22px;
        min-width: 70px;
        white-space: nowrap;
    }

    .basicInfoFlex {
        display: inline-flex;
        justify-content: flex-start;
        line-height: 22px;
    }
}

.basicList {
    padding: 32px 24px 32px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background-color: #fff;
}

.userRole {
    display: inline-flex;
    justify-content: flex-start;
    margin-bottom: 10px;

    .userRoleLabel {
        min-width: 70px;
    }
}

.userInfo {
    display: flex;
    align-items: center;

    .vvUserInfo {
        width: 100%;
        margin-left: 30px;

        .text_box {
            &:after {
                content: ' ';
                display: block;
                clear: both;
                visibility: hidden;
                line-height: 0;
                height: 0;
            }

            margin-right: 20%;
        }

        .name {
            float: left;
            margin-right: 15px;
            color: rgba(0, 0, 0, 0.85);
            font-size: 16px;
            font-weight: 600;
        }

        .vvPostion {
            color: rgba(0, 0, 0, 0.85);
            font-size: 14px;
            margin: 0 0 8px 0;
            font-weight: 400;
        }

        .info {
            font-size: 14px;
            color: rgba(0, 0, 0, 0.65);
            line-height: 32px;
        }
    }
}

.codeModal {
    display: flex;
    justify-content: center;
    align-items: center;

    :global {
        .ant-modal-body {
            text-align: center;
        }
    }

    .qrcode {
        width: 120px;
        display: inline-block;
        text-align: center;
        vertical-align: top;
        margin-left: 24px;

        .code {
            display: inline-block;
            border-radius: 8px;
            border: 1px solid rgba(0, 0, 0, 0.1);
            background: #fff;
            text-align: center;
            padding: 10px;

            canvas {
                width: 100px !important;
                height: 100px !important;
            }
        }

        .qrcodeP {
            font-size: 12px;
            color: rgba(0, 0, 0, 0.65);
        }

        .qrcodeDown {
            font-size: 12px;
        }
    }
}

.mobile_item {
    display: flex;

    a {
        display: inline-block;
        white-space: nowrap;
        margin-left: 10px;
    }
}

.businessCard {
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: 320px;
    height: 190px;
    background: url('./images/businessCard.png') no-repeat center;
    color: #fff;
    background-size: 100% 100%;
    padding: 15px 15px 65px 15px;

    .cardTop {
        display: flex;
        align-content: space-between;
        align-items: center;

        .info {
            text-align: left;
            flex: 2;

            b {
                font-size: 20px;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
                overflow: hidden;
                font-weight: 600;
                line-height: 24px;
                max-height: 48px;
                text-overflow: ellipsis;
                word-break: break-all;
                margin-bottom: 6px;
            }

            p {
                font-size: 14px;
                max-height: 36px;
                line-height: 18px;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
                overflow: hidden;
                text-overflow: ellipsis;
                margin: 2px 0 0 0;
                word-break: break-all;
                font-weight: 400;
                color: rgba(255, 255, 255, 0.65);
            }
        }

        img {
            width: 50px;
            height: 50px;
            margin-left: 16px;
            border: 1px solid #fff;
            border-radius: 100%;
            object-fit: cover;
            background: #fff;
            flex: 0 0 50px;
        }
    }

    .footer {
        position: absolute;
        left: 15px;
        bottom: 10px;
        right: 15px;
        font-size: 14px;

        span {
            display: flex;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;

            &:last-child {
                margin-right: 0;
            }
        }

        i {
            vertical-align: middle;
            margin-right: 8px;
        }
    }
}

.uploadFather {
    width: 72px;
    height: 100%;

    :global {
        .ant-upload.ant-upload-disabled {
            -webkit-filter: inherit;
            -moz-filter: inherit;
            -ms-filter: inherit;
            -o-filter: inherit;
            filter: inherit;
        }
    }
}

.upload {
    width: 72px;
    height: 72px;
    border: 1px solid #f2f2f2;

    :global {
        img {
            object-fit: cover;
        }
    }

    position: relative;
    border-radius: 100%;
    overflow: hidden;
    flex: 0 0 80px;
    transition: all 0.5s;

    .text {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.65);
        color: #fff;
        text-align: center;
        font-size: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
        display: none;
    }

    &:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);

        .text {
            display: flex;
        }
    }
}

.current {
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .userInfo {
        flex-flow: column;
        width: 100%;

        .vvUserInfo {
            margin-left: 0;

            .text_box {
                padding-right: 0;
            }
        }
    }

    .qrcode {
        margin-left: 0;
        margin-top: 24px;
    }
}

.dayCtr {
    display: inline-block;
    float: right;
    position: absolute;
    right: 0;
    bottom: 1px;

    //margin-top: -8px;
    .days {
        color: #ff9e00;
        font-size: 36px;
        font-weight: 600;
        margin: 0 6px 0 3px;
    }
}

.detailCtr {
    :global {
        .ant-form-item-label > label {
            color: rgba(0, 0, 0, 0.45);
        }
    }
}

.fRight {
    width: 180px;
    padding: 15px;
    background-color: #fff;
    position: fixed;
    right: 10px;
    top: 87px;
    z-index: 9999;
}

.formView {
    :global {
        .ant-form-item {
            margin-bottom: 0;
        }
    }
}

.formEdit {
    :global {
        .ant-form-item {
            margin-bottom: 16px;
        }

        .ant-form-item:last-child {
            margin-bottom: 0;
        }
    }

    .basicInfoEdit {
        .ant-form-item:last-child {
            margin-bottom: 16px;
        }
    }
}

.cardMargin {
    margin-top: 40px;
}

.avatarBtn {
    margin: 12px auto 0;
    padding: 0 6px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.selectAvatar {
    text-align: center;

    img {
        width: 230px;
    }
}

.avatarCtr {
    overflow: hidden;
}

.infoLeft {
    width: 348px;
    overflow: hidden;
    margin-right: 24px;
    float: left;
}

.cropAvatar {
    position: relative;
    width: 348px;
    height: 348px;
}

.cropContainer {
    //background: url('images/avatarBg.png') no-repeat 100%;
    width: 348px;
    height: 348px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 80px;
    background: url('./images/avatarBg.png') no-repeat;
    background-size: 100%;
}

.infoRight {
    width: 270px;
    float: right;
    color: #8c8c8c;

    p {
        margin-bottom: 5px;
    }

    .avatarTitle {
        margin-bottom: 16px;
        color: #262626;
        font-size: 16px;
        font-weight: bold;
    }

    .infoText {
        margin-bottom: 16px;
    }
}

.controls {
    display: flex;

    .slider {
        width: 310px;
        padding: 0 5px;
    }

    .narrow,
    .enlarge {
        width: 14px;
        margin-top: 8px;
        cursor: pointer;

        img {
            width: 100%;
        }
    }
}

.dimensionItem {
    display: flex;
}

.dimensionName {
    white-space: nowrap;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.8);
}
